package com.zut.Test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.zut.Service.UserService;
import com.zut.pojo.User;

public class UserServiceTest {
	private ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext2.xml");
	private UserService userService = ac.getBean("userService", UserService.class);

	public void testAdd() {
		User user = new User();
		userService.add(user);
	}


	public void testDeleteById() {
		UserService.deleteById(1);
	}

	public void testUpdate() {
		User user = new User();
		UserService.update(user);
	}


	public void testFindById() {
		UserService.findById(1);
	}

}